package com.vcredit.creditcat.service;

import com.vcredit.creditcat.model.CreditEntity;
import com.vcredit.creditcat.persistence.base.CreditEntityMapper;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 信用贴士 Service
 * 
 * @author zhangboshi
 *
 */
@Service
public class CreditEntityService {
	@Autowired
	private CreditEntityMapper mapper;

	public void insert(CreditEntity obj) {
		mapper.insert(obj);
	}

	public void update(CreditEntity obj) {
		mapper.update(obj);
	}

	public List<CreditEntity> findAll() {
		return mapper.findAll();
	}

	public List<CreditEntity> find(CreditEntity obj) {
		return mapper.find(obj);
	}
}